package org.wzl.todolisthelper.service.impl;

import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.wzl.todolisthelper.oss.MinioUploadComp;
import org.wzl.todolisthelper.service.UploadService;

@Slf4j
@Service
public class UploadServiceImpl implements UploadService {

    @Resource
    private MinioUploadComp minioUploadComp;

    @Override
    public String uploadBase64Img(String base64Img, String fileName) {
        return minioUploadComp.upload(base64Img, fileName);
    }

}
